package com.tjp.subject.common.entity;

/**
 * @program: jz-club
 * @description: 分页请求实体
 * @author: aaronTang
 * @create: 2024-03-01
 */
public class PageInfo {

    private Integer page = 1;

    private Integer pageSize = 10;

    public Integer getPage() {
        if (page == null || page < 1) {
            return 1;
        }
        return page;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize < 1 || pageSize > Integer.MAX_VALUE) {
            return 10;
        }
        return pageSize;
    }
}
